package com.liao.jpa.dao;

import com.liao.jpa.pojo.TbUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.QueryByExampleExecutor;

import java.util.List;

public interface UserDao extends CrudRepository<TbUser,Integer>, CustomUser,
        QueryByExampleExecutor<TbUser>, JpaSpecificationExecutor<TbUser> {

    List<TbUser> findByIdBetween(Integer start, Integer end);
}
